<%@ page language="java" contentType="text/html;w charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="webshopstyle.css">
<title>sAktiehuis Webshop</title>
<script>
	function load() {
		//alert("Do you have cookies enabled?");
		//alert("YOLO SWAG 420 BLAZE IT FAGGOT!")
	}
</script>

</head>
<body onload="load()">
	<div id="container" style="width: 1000px">

		<div id="header">
			<div id=search>
				<form name="searchfield" action="" onsubmit="search()" method="post">
					Search: <input name="searchtext" type="text" > <input
						type="submit" value="Submit">
				</form>
			</div>
			<h1 style="margin-bottom: 0;">sAktiehuis Webshop</h1>

		</div>

		<div id="menu">
			<b>Menu</b><br>
			<a href="winkelwagen.jsp">Winkelwagen</a><br>
		</div>

		<div id="content">

			<div class="product" onclick="myFunction('Appel')">
				<div class=productname>Appel</div>
				<div class=productcatagorie>Voedsel</div>
				<div class=productprice>2.20</div>
				<div class=productdescription>blaat</div>
			</div>

			<div class="product" onclick="myFunction('Melk')">
				<div class=productname>Melk</div>
				<div class=productcatagorie>Voedsel</div>
				<div class=productprice>1.22</div>
				<div class=productdescription>0,5 ltr</div>
			</div>

			<div class="product" onclick="myFunction('Brood')">
				<div class=productname>Brood</div>
				<div class=productcatagorie>Voedsel</div>
				<div class=productprice>0.60</div>
				<div class="productdescription">Donkerbruin</div>
			</div>
		</div>


	</div>


	<script>
		function myFunction(var1) {

			var quantity = prompt("Please enter quantity of " + var1);

			if (quantity > 0 && quantity != null) {
				alert("You just ordered " + quantity + " of " + var1);
				//document.getElementById("demo").innerHTML = x;
			} else {
				alert("Geen geldig getal, bestel 1 of meer");
			}
		}
		</script>
		<script>
		function search() {
			var x=document.forms["searchfield"]["searchtext"].value;
			alert("you asked about: " + x);
		}
	</script>

</body>
</html>